import 'package:json_annotation/json_annotation.dart'; 
import 'package:lai_zhan/common/model/powerResult/power_result.dart';
import 'package:lai_zhan/common/model/vipResult/vip_result.dart';
import 'package:lai_zhan/common/model/shopResult/shop_result.dart';

part 'user_result.g.dart';


@JsonSerializable()
  class UserResult extends Object {

  @JsonKey(name: 'uid')
  String uid;

  @JsonKey(name: 'uname')
  String uname;

  @JsonKey(name: 'hpicurl')
  String hpicurl;

  @JsonKey(name: 'phone')
  String phone;

  @JsonKey(name: 'email')
  String email;

  @JsonKey(name: 'powerResult')
  PowerResult powerResult;

  @JsonKey(name: 'vipResult')
  VipResult vipResult;

  @JsonKey(name: 'shopResult')
  ShopResult shopResult;

  @JsonKey(name: 'gender')
  String gender;

  @JsonKey(name: 'vpoint')
  int vpoint;

  @JsonKey(name: 'validity')
  int validity;

  @JsonKey(name: 'descr')
  String descr;

  @JsonKey(name: 'ustatus')
  String ustatus;

  UserResult(this.uid,this.uname,this.hpicurl,this.phone,this.email,this.powerResult,this.vipResult,this.shopResult,this.gender,this.vpoint,this.validity,this.descr,this.ustatus,);

  factory UserResult.fromJson(Map<String, dynamic> srcJson) => _$UserResultFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserResultToJson(this);

  UserResult.empty();
}

  
